package com.xnf.ssmweb.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created by chendx on 2021/4/1.
 */
public class BCryptPasswordEncoderUtil {

    private static BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();

    public static String passwordEncoder(String password){
        return encoder.encode(password);
    }
}
